package com.xbh.management.job;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xbh.management.model.ManUser;
import com.xbh.management.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2022-03-03 14:55
 */

//@Component
@Slf4j
public class TaskScheduledSendMessage {

    @Autowired
    private UserService userService;

    @Scheduled(cron = "")
    private void taskScheduledSendMessage(){
        LambdaQueryWrapper<ManUser> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(ManUser::getDeleted,new Integer(0));
        List<ManUser> list = userService.list(wrapper);
    }
}
